package com.sqtracker.recommender.repository;

import com.sqtracker.recommender.model.TorrentScore;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Optional;

@Repository
public interface TorrentScoreRepository extends MongoRepository<TorrentScore, String> {
    Optional<TorrentScore> findByTorrentId(String torrentId);
    List<TorrentScore> findByLastUpdatedBefore(Date date);
    List<TorrentScore> findTop10ByOrderByFinalScoreDesc();
} 